﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage.Master" AutoEventWireup="true" CodeBehind="MCla.aspx.cs" Inherits="WebSystem.MCla" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <br />
    <br />
    <br />
    <br />
    <br />
    <table class="auto-style1">
        <tr>
            <td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Button ID="Button10" runat="server" OnClick="Button7_Click" Text="增加课程" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button11" runat="server" OnClick="Button8_Click" Text="删除课程" />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="Button12" runat="server" OnClick="Button9_Click" Text="修改课程" style="text-align: center" />
            </td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </table>
    <p>
        &nbsp;</p>
    <p style="text-align: center">
        <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False" DataKeyNames="Cno,Tno" DataSourceID="SqlDataSource1" style="z-index: 1; left: 255px; top: 181px; position: absolute; height: 115px; width: 258px" OnSelectedIndexChanged="Page_Load">
            <Columns>
                <asp:BoundField DataField="Cno" HeaderText="课程号" ReadOnly="True" SortExpression="Cno" />
                <asp:BoundField DataField="Cname" HeaderText="课程" SortExpression="Cname" />
                <asp:BoundField DataField="Credit" HeaderText="学分" SortExpression="Credit" />
                <asp:BoundField DataField="Tno" HeaderText="教师号" ReadOnly="True" SortExpression="Tno" />
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014115121ConnectionString %>" SelectCommand="SELECT * FROM [Course]"></asp:SqlDataSource>
    </p>
    <p>
        &nbsp;</p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
    <p>
    </p>
</asp:Content>
